package com.ddpt.permission.service;

import com.lh.center.common.base.BizService;
import com.lh.center.common.base.ResponseEntity;
import com.lh.center.permission.api.entity.MerchantAdminUser;
import com.lh.center.permission.api.request.MerchantEmpCountQueryRequest;
import com.lh.center.permission.api.request.UpdateMerchantUserPasswordReq;
import com.lh.center.permission.api.response.MerchantEmpCountResponse;

import java.util.List;

/**
 * <p>
 * 商户管理员 服务类
 * </p>
 *
 * @author czy
 * @since 2022-04-07
 */
public interface MerchantAdminUserService extends BizService<MerchantAdminUser> {

    void createMerchantAdmin(MerchantAdminUser adminUser);

    void checkAdminUsernameUnique(Long id,String username);

    ResponseEntity<List<MerchantEmpCountResponse>> queryMerchantEmpCount(MerchantEmpCountQueryRequest queryRequest);

    void resetPasswordFromBack(MerchantAdminUser adminUser);

    MerchantAdminUser queryByUsernameAndPassword(String username,String password);

    MerchantAdminUser queryByUsernameAndPasswordCallBack(String username, String password);

    List<Long> queryIdByIns(List<Long> dataInsIds);

    MerchantAdminUser getMerchanAdminUser(Long id);

    void bindWx(Long id, String openId);

    void unBindWx(Long id);

    /**
     * 修改密码
     */
    void updatePassword(UpdateMerchantUserPasswordReq updateMerchantUserPasswordDot);
}
